package lab02.test11;

/**
 * Created by ASUS on 2017/10/22.
 */
public class Square extends Rectangle{
    double line;
    double line(){
        return line=Math.sqrt (length*length+width*width);
    }
    @Override
    public void printMyWay() {
        line();
    }
}
